/<template>
  <div>
      <ul>
          <!-- 必须要有 :key -->
          <li v-for="(item,index) in arr" :key="index">
              <h1>{{item.name}}</h1>
              <h1>{{item.school}}</h1>
              <h1>{{item.classRoom}}</h1>
          </li>
      </ul>
  </div>
</template>

<script>
export default {
    props:{
        arr:Array
    }
}
</script>

<style>
    h1{
        color: rgb(24, 124, 57);
    }
</style>